package com.infnoon.ojback.model.dto.contest;

import com.infnoon.ojback.common.PageRequest;
import com.infnoon.ojback.model.entity.Question;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 进行比赛请求
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ContestDoRequest extends PageRequest implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 比赛名称
     */
    private String contestName;

    /**
     * 比赛题目(JSON数组)
     */
    private List<Question> contestTasks;

    /**
     * 比赛的开始时间
     */
    private Date contestStart;

    /**
     * 比赛的结束时间
     */
    private Date contestEnd;

    /**
     * 报名用户名单 (JSON数组, 存放用户ID)
     */
    private List<Long> participants;

    private static final long serialVersionUID = 1L;
}